{#template MAIN}
<div class="toolbar">
	<h1> 菜谱维护(菜系:{$T.info.name}) </h1>
	<a class="button back" onclick="category.show('slide-right');"> 返回 </a>
</div>
<div class="content">
	<ul class="rounded">
		<li>
			<a onclick='category.showUpdate({JSON.stringify($T.info)},"pop-in")';">
				<img src="images/tabs/flag.png" class="icon greenbox"> 修改 <span class="arrow"></span>
			</a>
		</li>
		<li>
			<a onclick='category.deleteObj({JSON.stringify($T.info)});'>
				<img src="images/tabs/flag.png" class="icon greenbox"> 删除 <span class="arrow"></span>
			</a>
		</li>
		<li>
			<a onclick='foodList.showAdd({JSON.stringify($T.info)},"pop-in");'>
				<img src="images/tabs/flag.png" class="icon greenbox"> 增加菜谱 <span class="arrow"></span>
			</a>
		</li>
	</ul>
	<h2> 菜谱列表 </h2>
	<ul class="rounded">
	{#foreach $T.foodList as Item}
	<li><a onclick='foodList.showUpdate({JSON.stringify($T.Item)},{JSON.stringify($T.info)})'>{$T.Item.name}<span class="arrow"></span></a></li>
	{#/for}
	</ul>
</div>
{#/template MAIN}